<?php

$router = $this->container["router"];

$router->addGroup("/prefix",function ($r){
    $r->addRoute('PUT', '/test', 'test');
});
$router->get("/",'App\Controller\Index@users');
$router->addRoute('GET', '/users', 'App\Controller\Index@users');
$router->addRoute('GET', '/user/{id:\d+}', 'App\Controller\Index@index');
$router->addRoute('GET', '/articles/{id:\d+}[/{title}]', 'get_article_handler');
